// roadmanager的右击菜单
#custom-context-menu {
  position: fixed;
  left: 0;
  top: 0;
  background: white;
  border: 1px solid #ccc;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  padding: 5px 0;

  // 菜单项
  div {
    padding: 5px 20px;
    cursor: pointer;
  }
}

// 轨道控制器模式菜单
#transform-mode-menu {
  position: absolute;
  left: 50%;
  top: 20px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  background: rgba(30, 30, 30, 0.9);
  color: white;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  z-index: 1001;
  .transform-mode-menu-item {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    padding: 5px;
    border-radius: 4px;
    cursor: pointer;

    &:hover {
      background: rgba(255, 255, 255, 0.1);
    }
    // 含有active的class时，背景为灰色
    &.active {
      background: rgba(255, 255, 255, 0.2);
    }
  }
}
